package com.youpingou.client;

import com.youpingou.domain.User;
import com.youpingou.vo.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auther Created by yuanxinqi
 */
@FeignClient(value = "web-service")//,fallback = UserClientFallback.class
public interface UserClient {

    @GetMapping("query")
    public User findUserByMobile(@RequestParam("mobile") String mobile, @RequestParam("password") String password);

}
